package cn.finedo.highway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.File;
import java.io.IOException;

@SpringBootApplication
@EnableScheduling
@ComponentScan({"cn.finedo"})
@ImportResource({"classpath:spring-context.xml"})
public class HighwayServerApplication {

    public static void main(String[] args) {
        try {
            File f = new File("");
            System.setProperty("app.home", f.getCanonicalPath());
        } catch (IOException e) {
            e.printStackTrace();
        }
        SpringApplication.run(HighwayServerApplication.class, args);
    }

}
